﻿@page "/register"

@using North.Common
@using North.Core.Common;
@using North.Core.Entities
@using North.RCL.Forms
@using North.RCL.Texts
@using SqlSugar

@inject IJSRuntime JS
@inject ILogger _logger
@inject ISnackbar _snackbar
@inject ISqlSugarClient _client
@inject AppSetting _appSetting
@inject NavigationManager _nav
@inject IHttpContextAccessor _accessor

@layout AuthLayout

<MudStack Class="d-flex justify-center align-center mud-width-full mud-height-full">
    <RegisterForm Model="@Model" Title="@_appSetting.Appearance.Name"
                  OnRegister="@UserRegister" OnEnter="@EnterToRegister" OnAvatarUpload="@UploadAvatar" OnAvatarClear="@ClearAvatar"
                  RegisterRunning="@RegisterRunning"  LoginLink="login" RetrievePasswordLink="findpwd" />
</MudStack>

<style>
    body {
        background-image: url(@BackgroundImageUrl);
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover;
    }
</style>